Remove keep-awake ping on heroku

Heroku's new Free tier requires applications to sleep for at least
six hours a day, thus we can not keep huginn awake.
Every paid tier does not but the application to sleep at all.

Dominik Sander 8 years ago
parent
commit
b074d390a5
1 changed files with 0 additions and 5 deletions
  1. 0 5
      deployment/heroku/unicorn.rb

+ 0 - 5
deployment/heroku/unicorn.rb

@@ -17,11 +17,6 @@ Thread.new do
17 17
 
18 18
     sleep 45
19 19
 
20
-    if ENV['DOMAIN']
21
-      force_ssl = ENV['FORCE_SSL'] == 'true'
22
-      Net::HTTP.get_response(URI((force_ssl ? "https://" : "http://") + ENV['DOMAIN']))
23
-    end
24
-
25 20
     begin
26 21
       Process.getpgid worker_pid
27 22
     rescue Errno::ESRCH